package com.saxon.mybatis_plus.service.impl;

import com.saxon.mybatis_plus.pojo.User;
import com.saxon.mybatis_plus.mapper.UserMapper;
import com.saxon.mybatis_plus.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author saxon
 * @since 2020-10-30
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public List<User> getUserList () {
        return userMapper.selectList (null);
    }
}
